package ran.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import ran.entity.PageRequest;
import ran.entity.QuestionInfo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-09-30
 * Time: 12:47
 */
@Mapper
public interface QuestionMapper extends BaseMapper<QuestionInfo> {

    @Select("select * from question_info where `question_id` != 0 limit #{offset},#{pageSize}")
    List<QuestionInfo> selectBookByPage(PageRequest pageRequest);
}
